package cn.com.xf.common;

import java.util.HashMap;

/**
 * 常量
 * 
 * @author Administrator
 * 
 */
public class Constants {
	// 表单返回值的名字
	public final static String FORM_COMMAND_KEY = "command";

	public final static String SECURITY_ROLE_ENABLE_YES = "1";
	public final static String SECURITY_ROLE_ENABLE_NO = "0";

	public final static String SECURITY_ROLE_PREFIX = "";

	public final static String SECURITY_ROLE_ADMIN = "ROLE_ADMIN";
	public final static String SECURITY_ROLE_MANAGER = "ROLE_MANAGER";
	public final static String SECURITY_ROLE_USER = "ROLE_USER";

	public final static String ROLE_FAQ_ADD = "ROLE_FAQ_ADD";
	public final static String ROLE_FAQ_DELETE = "ROLE_FAQ_DELETE";
	public final static String ROLE_FAQ_EDIT = "ROLE_FAQ_EDIT";
	public final static String ROLE_FAQ_LIST = "ROLE_FAQ_LIST";

	public final static String ROLE_NOTICE_ADD = "ROLE_NOTICE_ADD";
	public final static String ROLE_NOTICE_DELETE = "ROLE_NOTICE_DELETE";
	public final static String ROLE_NOTICE_EDIT = "ROLE_NOTICE_EDIT";
	public final static String ROLE_NOTICE_LIST = "ROLE_NOTICE_LIST";

	public final static String ROLE_USER_ADD = "ROLE_USER_ADD";
	public final static String ROLE_USER_DELETE = "ROLE_USER_DELETE";
	public final static String ROLE_USER_EDIT = "ROLE_USER_EDIT";
	public final static String ROLE_USER_LIST = "ROLE_USER_LIST";
	public final static String DEFAULT_ROLE = "DEFAULT_ROLE";

	/**
	 * 权限的细分
	 */
	// 公告
	public final static String PERMISSION_READ_NOTICE = "READ_NOTICE";

	public final static String NOTICE_GROUP_NOTICE = "0";
	public final static String NOTICE_GROUP_DAILY = "1";
	public final static String FILE_TYPE_A6 = "0";
	public final static String FILE_TYPE_SAOMIAO = "1";
	public final static String FILE_TYPE_BA = "2";
	public final static String FILE_TYPE_QUYU = "3";
	public final static String FILE_TYPE_BAOJIA = "4";
	public final static String FILE_TYPE_OPR = "5";
	public final static String FAQ_CLASS_QA = "常见问题";
	public final static String FAQ_CLASS_SERVICE = "服务指南";
	public final static String NEWS_GROUP_GONGSI = "0";
	public final static String NEWS_GROUP_HANGYE = "1";
	/**
	 * 基础信息
	 */
	public final static int SECURITY_ROLE_ADMIN_INT = 1;
	public final static int SECURITY_ROLE_MANAGER_INT = 2;
	public final static int SECURITY_ROLE_USER_INT = 3;

	public final static String UPLOAD_TYPE_IMAGE = "image";
	public final static String UPLOAD_TYPE_FLASH = "flash";
	public final static String UPLOAD_TYPE_MEDIA = "media";
	public final static String UPLOAD_TYPE_FILE = "file";
	public final static String UPLOAD_PATH_IMAGE = "/upload/image";
	public final static String UPLOAD_PATH_FLASH = "/upload/flash";
	public final static String UPLOAD_PATH_MEDIA = "/upload/media";
	public final static String UPLOAD_PATH_FILE = "/upload/file";
	public final static String UPLOAD_PATH_TEMP = "/upload/fileTemp";
	public final static String UPLOAD_PATH_RESUME = "/upload/resume";
	public final static String UPLOAD_TEMP_SPILT = "__TEMP___";

	public final static String TAB_NOTICE = "notice";
	public final static String TAB_SOFT = "soft";
	public final static String TAB_FAQ = "faq";
	public final static String TAB_SETTING = "setting";
	public final static String TAB_SITE = "site";
	public final static String TAB_AREA = "area";
	public final static String TAB_CHECK = "check";
	public final static String TAB_DESTIN = "destin";
	public final static String TAB_VISITOR = "visitor";

	public final static String SITE_MODULE_PRODUCT = "product";
	public final static String SITE_MODULE_CUSTOM = "custom";
	public final static String SITE_MODULE_ABOUT = "about";
	public final static String SITE_MODULE_JOIN = "join";
	public final static String SITE_MODULE_JOB = "job";

	public final static String PRODUCT_STANDARD = "PRODUCT_STANDARD";
	public final static String PRODUCT_HK = "PRODUCT_HK";
	public final static String PRODUCT_NATION = "PRODUCT_NATION";
	public final static String PRODUCT_DAOFU = "PRODUCT_DAOFU";
	public final static String PRODUCT_DAISHOU = "PRODUCT_DAISHOU";
	public final static String PRODUCT_DAIQIAN = "PRODUCT_DAIQIAN";

	public final static String COMPANY_NAME = "COMPANY_NAME";
	public final static String COMPANY_FREE_TEL = "COMPANY_FREE_TEL";
	public final static String COMPANY_TEL = "COMPANY_TEL";
	public final static String COMPANY_ADDRESS = "COMPANY_ADDRESS";
	public final static String COMPANY_LINKMAN = "COMPANY_LINKMAN";
	public final static String COMPANY_BRIEF = "COMPANY_BRIEF";
	public final static String COMPANY_SERVICE_IDEA = "COMPANY_SERVICE_IDEA";
	public final static String COMPANY_BIZ_ADVANTAGE = "COMPANY_BIZ_ADVANTAGE";
	public final static String COMPANY_TEAM = "COMPANY_TEAM";
	public final static String COMPANY_CONTACT_US = "COMPANY_CONTACT_US";

	public final static String COMPANY_RONGYU = "COMPANY_RONGYU";
	public final static String COMPANY_CISHAN = "COMPANY_CISHAN";

	public final static String JOIN_ADVANTAGE = "JOIN_ADVANTAGE";
	public final static String JOIN_CONDITION = "JOIN_CONDITION";
	public final static String JOIN_AREA = "JOIN_AREA";
	public final static String JOB_IDEA = "JOB_IDEA";
	public final static String JIJIAN_CONTRABAND = "JIJIAN_CONTRABAND";
	public final static String JIJIAN_NOTICE = "JIJIAN_NOTICE";

	public final static String CUSTOMER_NOTICE = "CUSTOM_NOTICE";
	public final static String CUSTOMER_WEIJIN = "CUSTOMER_WEIJIN";
	public final static String CUSTOMER_SUGGEST = "CUSTOMER_SUGGEST";

	public final static String TS_USER_ENABLED_NO = "未启用";
	public final static String TS_USER_ENABLED_YES = "已启用";

	public final static HashMap<String, String> SOFT_TYPE_MAP = new HashMap<String, String>();
	static {
		SOFT_TYPE_MAP.put("11", "新版A6相关下载");
		SOFT_TYPE_MAP.put("12", "高速扫描仪");

		SOFT_TYPE_MAP.put("13", "旧A6下载");
		SOFT_TYPE_MAP.put("14", "巴枪软件");
		SOFT_TYPE_MAP.put("15", "软件下载");
		SOFT_TYPE_MAP.put("16", "报价表下载");
		SOFT_TYPE_MAP.put("17", "操作规程下载");

		SOFT_TYPE_MAP.put("18", "杀毒工具");
		SOFT_TYPE_MAP.put("19", "区域表下载");
		SOFT_TYPE_MAP.put("21", "未命名");
	}

	public final static HashMap<String, String> APP_OS_TYPE_MAP = new HashMap<String, String>();
	static {
		APP_OS_TYPE_MAP.put("其他", "其他");
		APP_OS_TYPE_MAP.put("Windows", "Windows");
		APP_OS_TYPE_MAP.put("iOS", "iOS");
		APP_OS_TYPE_MAP.put("Android", "Android");
	}

	public final static HashMap<String, String> APP_TYPE_MAP = new HashMap<String, String>();
	static {
		APP_TYPE_MAP.put("3", "通用版");
		APP_TYPE_MAP.put("2", "中心版");
		APP_TYPE_MAP.put("1", "车线版");
		APP_TYPE_MAP.put("0", "网点版");
	}

	public final static HashMap<String, String> APP_COMPANY_MAP = new HashMap<String, String>();
	static {
		APP_COMPANY_MAP.put("凯立", "凯立");
	}

	public final static HashMap<String, String> APP_STATUS_MAP = new HashMap<String, String>();
	static {
		APP_STATUS_MAP.put("0", "未使用");
		APP_STATUS_MAP.put("1", "使用中");
	}

	public final static String ABSOLUTE_ROOT_NAME = "absolute_root";
	public final static String ABSOLUTE_ROOT_IMAGE_PATH = "image";
	public final static String ABSOLUTE_ROOT_FILE_PATH = "file";
	public final static String ABSOLUTE_ROOT_FLV_PATH = "flv";
	public final static String ABSOLUTE_ROOT_RESUME_PATH = "resume";
	public final static String ABSOLUTE_ROOT_APP_PATH = "app";
	public final static String ABSOLUTE_ROOT_APK_PATH = "apk";

	public final static String CONFIG_SMS_LENGTH = "sms_length";
	
	public static final String TOKEN = "{23B82CD2-5806-4612-9435-6CCE88710381}";
	
	public static final String[] HUMEN_CARLINE = new String[] {"756007","760021","757022","020013","757047","760023","200007","753092",
			"757020","757033","755056","020008","200001","200018","020100","200013","750004","757015","753090",
			"200017","757045","020062","020097","020082","758008","752009","757036","757038","757056","020098",
			"020096","757010","757039","756015","760011","200010","020092","756005","020099","750014","200011",
			"200005","755017","755030"};
	
	public static final String[] SHENZHEN_CARLINE = new String[] {"755070","755068","755066","755071"};

}
